package org.goyo.main.domain.dao.pur.impl;

import java.util.List;

import org.goyo.common.exception.DBException;
import org.goyo.main.domain.dao.BaseDAO;
import org.goyo.main.domain.dao.pur.IPaymentDao;
import org.goyo.main.domain.entity.pur.Payment;
import org.springframework.stereotype.Repository;

@Repository
public class PaymentDaoImpl extends BaseDAO implements IPaymentDao{
	

	@Override
	public List<Payment> findByParentId(String parentId) throws DBException {
		String hql = "from Payment where parentId=?";
		return this.findObjects(hql, null, new Object[]{parentId});
	}
}
